.class Lcom/glympse/android/glympse/ViewDestination$MyGlympseView;
.super Lcom/glympse/android/glympse/Glympse$GlympseView;
.source "ViewDestination.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/glympse/android/glympse/ViewDestination;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = "MyGlympseView"
.end annotation


# instance fields
.field final synthetic this$0:Lcom/glympse/android/glympse/ViewDestination;


# direct methods
.method constructor <init>(Lcom/glympse/android/glympse/ViewDestination;)V
    .locals 0
    .parameter

    .prologue
    .line 47
    iput-object p1, p0, Lcom/glympse/android/glympse/ViewDestination$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewDestination;

    invoke-direct {p0}, Lcom/glympse/android/glympse/Glympse$GlympseView;-><init>()V

    return-void
.end method


# virtual methods
.method public CreateView()V
    .locals 13

    .prologue
    const/4 v12, -0x2

    const-wide v10, 0x412e848000000000L

    const/4 v9, 0x1

    const/4 v8, 0x0

    .line 52
    iget-object v3, p0, Lcom/glympse/android/glympse/ViewDestination$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewDestination;

    invoke-virtual {v3}, Lcom/glympse/android/glympse/ViewDestination;->getContext()Landroid/content/Context;

    move-result-object v3

    invoke-static {v3}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v3

    const v4, 0x7f030005

    iget-object v5, p0, Lcom/glympse/android/glympse/ViewDestination$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewDestination;

    invoke-virtual {v3, v4, v5, v9}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v2

    .line 54
    .local v2, oView:Landroid/view/View;
    iget-object v4, p0, Lcom/glympse/android/glympse/ViewDestination$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewDestination;

    const v3, 0x7f0c001d

    invoke-virtual {v2, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/EditText;

    invoke-static {v4, v3}, Lcom/glympse/android/glympse/ViewDestination;->access$0(Lcom/glympse/android/glympse/ViewDestination;Landroid/widget/EditText;)V

    .line 55
    iget-object v3, p0, Lcom/glympse/android/glympse/ViewDestination$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewDestination;

    invoke-static {v3}, Lcom/glympse/android/glympse/ViewDestination;->access$1(Lcom/glympse/android/glympse/ViewDestination;)Landroid/widget/EditText;

    move-result-object v3

    new-instance v4, Lcom/glympse/android/glympse/ViewDestination$OnKeyName;

    iget-object v5, p0, Lcom/glympse/android/glympse/ViewDestination$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewDestination;

    invoke-direct {v4, v5}, Lcom/glympse/android/glympse/ViewDestination$OnKeyName;-><init>(Lcom/glympse/android/glympse/ViewDestination;)V

    invoke-virtual {v3, v4}, Landroid/widget/EditText;->setOnKeyListener(Landroid/view/View$OnKeyListener;)V

    .line 56
    iget-object v3, p0, Lcom/glympse/android/glympse/ViewDestination$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewDestination;

    invoke-static {v3}, Lcom/glympse/android/glympse/ViewDestination;->access$1(Lcom/glympse/android/glympse/ViewDestination;)Landroid/widget/EditText;

    move-result-object v3

    iget-object v4, p0, Lcom/glympse/android/glympse/ViewDestination$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewDestination;

    invoke-static {v4}, Lcom/glympse/android/glympse/ViewDestination;->access$2(Lcom/glympse/android/glympse/ViewDestination;)Lcom/glympse/platform/common/Place;

    move-result-object v4

    iget-object v4, v4, Lcom/glympse/platform/common/Place;->m_strName:Ljava/lang/String;

    invoke-static {v4}, Lcom/glympse/platform/common/Helpers;->SafeStr(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    .line 57
    iget-object v3, p0, Lcom/glympse/android/glympse/ViewDestination$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewDestination;

    invoke-static {v3}, Lcom/glympse/android/glympse/ViewDestination;->access$1(Lcom/glympse/android/glympse/ViewDestination;)Landroid/widget/EditText;

    move-result-object v3

    invoke-virtual {v3}, Landroid/widget/EditText;->selectAll()V

    .line 59
    const v3, 0x7f0c001e

    invoke-virtual {v2, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageButton;

    .line 60
    .local v0, oButtonDone:Landroid/widget/ImageButton;
    new-instance v3, Lcom/glympse/android/glympse/ViewDestination$OnClickDone;

    iget-object v4, p0, Lcom/glympse/android/glympse/ViewDestination$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewDestination;

    invoke-direct {v3, v4}, Lcom/glympse/android/glympse/ViewDestination$OnClickDone;-><init>(Lcom/glympse/android/glympse/ViewDestination;)V

    invoke-virtual {v0, v3}, Landroid/widget/ImageButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 62
    iget-object v4, p0, Lcom/glympse/android/glympse/ViewDestination$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewDestination;

    const v3, 0x7f0c001f

    invoke-virtual {v2, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/RelativeLayout;

    invoke-static {v4, v3}, Lcom/glympse/android/glympse/ViewDestination;->access$3(Lcom/glympse/android/glympse/ViewDestination;Landroid/widget/RelativeLayout;)V

    .line 63
    sget-object v3, Lcom/glympse/android/glympse/Glympse;->ms_oThis:Lcom/glympse/android/glympse/Glympse;

    iget-object v3, v3, Lcom/glympse/android/glympse/Glympse;->m_oMapControl:Lcom/glympse/android/glympse/MapControl;

    iget-object v4, p0, Lcom/glympse/android/glympse/ViewDestination$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewDestination;

    invoke-static {v4}, Lcom/glympse/android/glympse/ViewDestination;->access$4(Lcom/glympse/android/glympse/ViewDestination;)Landroid/widget/RelativeLayout;

    move-result-object v4

    sget-object v5, Lcom/glympse/android/glympse/MapControl$EViewMode;->DestinationPicker:Lcom/glympse/android/glympse/MapControl$EViewMode;

    invoke-virtual {v3, v4, v5}, Lcom/glympse/android/glympse/MapControl;->MapPlease(Landroid/view/ViewGroup;Lcom/glympse/android/glympse/MapControl$EViewMode;)V

    .line 65
    sget-object v3, Lcom/glympse/android/glympse/Glympse;->ms_oThis:Lcom/glympse/android/glympse/Glympse;

    iget-object v3, v3, Lcom/glympse/android/glympse/Glympse;->m_oMapControl:Lcom/glympse/android/glympse/MapControl;

    iget-object v3, v3, Lcom/glympse/android/glympse/MapControl;->m_oMapController:Lcom/google/android/maps/MapController;

    new-instance v4, Lcom/google/android/maps/GeoPoint;

    .line 66
    iget-object v5, p0, Lcom/glympse/android/glympse/ViewDestination$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewDestination;

    invoke-static {v5}, Lcom/glympse/android/glympse/ViewDestination;->access$2(Lcom/glympse/android/glympse/ViewDestination;)Lcom/glympse/platform/common/Place;

    move-result-object v5

    iget-wide v5, v5, Lcom/glympse/platform/common/Place;->m_dLatitude:D

    mul-double/2addr v5, v10

    invoke-static {v5, v6}, Ljava/lang/Double;->valueOf(D)Ljava/lang/Double;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/Double;->intValue()I

    move-result v5

    .line 67
    iget-object v6, p0, Lcom/glympse/android/glympse/ViewDestination$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewDestination;

    invoke-static {v6}, Lcom/glympse/android/glympse/ViewDestination;->access$2(Lcom/glympse/android/glympse/ViewDestination;)Lcom/glympse/platform/common/Place;

    move-result-object v6

    iget-wide v6, v6, Lcom/glympse/platform/common/Place;->m_dLongitude:D

    mul-double/2addr v6, v10

    invoke-static {v6, v7}, Ljava/lang/Double;->valueOf(D)Ljava/lang/Double;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/Double;->intValue()I

    move-result v6

    invoke-direct {v4, v5, v6}, Lcom/google/android/maps/GeoPoint;-><init>(II)V

    .line 65
    invoke-virtual {v3, v4}, Lcom/google/android/maps/MapController;->setCenter(Lcom/google/android/maps/GeoPoint;)V

    .line 69
    sget-object v3, Lcom/glympse/android/glympse/Glympse;->ms_oThis:Lcom/glympse/android/glympse/Glympse;

    iget-object v3, v3, Lcom/glympse/android/glympse/Glympse;->m_oMapControl:Lcom/glympse/android/glympse/MapControl;

    invoke-virtual {v3, v8}, Lcom/glympse/android/glympse/MapControl;->SetPanning(Z)V

    .line 71
    sget-object v3, Lcom/glympse/android/glympse/Glympse;->ms_oThis:Lcom/glympse/android/glympse/Glympse;

    iget-object v3, v3, Lcom/glympse/android/glympse/Glympse;->m_oMapControl:Lcom/glympse/android/glympse/MapControl;

    invoke-virtual {v3, v8}, Lcom/glympse/android/glympse/MapControl;->SetSatellite(Z)Z

    .line 72
    sget-object v3, Lcom/glympse/android/glympse/Glympse;->ms_oThis:Lcom/glympse/android/glympse/Glympse;

    iget-object v3, v3, Lcom/glympse/android/glympse/Glympse;->m_oMapControl:Lcom/glympse/android/glympse/MapControl;

    invoke-virtual {v3, v8}, Lcom/glympse/android/glympse/MapControl;->SetTraffic(Z)Z

    .line 73
    sget-object v3, Lcom/glympse/android/glympse/Glympse;->ms_oThis:Lcom/glympse/android/glympse/Glympse;

    iget-object v3, v3, Lcom/glympse/android/glympse/Glympse;->m_oMapControl:Lcom/glympse/android/glympse/MapControl;

    iget-object v3, v3, Lcom/glympse/android/glympse/MapControl;->m_oMapController:Lcom/google/android/maps/MapController;

    const/16 v4, 0xf

    invoke-virtual {v3, v4}, Lcom/google/android/maps/MapController;->setZoom(I)I

    .line 76
    sget-object v3, Lcom/glympse/android/glympse/Glympse;->ms_oThis:Lcom/glympse/android/glympse/Glympse;

    iget-object v3, v3, Lcom/glympse/android/glympse/Glympse;->m_oMapControl:Lcom/glympse/android/glympse/MapControl;

    invoke-virtual {v3, v9}, Lcom/glympse/android/glympse/MapControl;->setClickable(Z)V

    .line 77
    sget-object v3, Lcom/glympse/android/glympse/Glympse;->ms_oThis:Lcom/glympse/android/glympse/Glympse;

    iget-object v3, v3, Lcom/glympse/android/glympse/Glympse;->m_oMapControl:Lcom/glympse/android/glympse/MapControl;

    invoke-virtual {v3, v9}, Lcom/glympse/android/glympse/MapControl;->setFocusable(Z)V

    .line 79
    new-instance v1, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v1, v12, v12}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    .line 81
    .local v1, oLayout:Landroid/widget/RelativeLayout$LayoutParams;
    const/16 v3, 0xc

    invoke-virtual {v1, v3}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    .line 82
    const/16 v3, 0xe

    invoke-virtual {v1, v3}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    .line 84
    iget-object v3, p0, Lcom/glympse/android/glympse/ViewDestination$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewDestination;

    invoke-static {v3}, Lcom/glympse/android/glympse/ViewDestination;->access$4(Lcom/glympse/android/glympse/ViewDestination;)Landroid/widget/RelativeLayout;

    move-result-object v3

    sget-object v4, Lcom/glympse/android/glympse/Glympse;->ms_oThis:Lcom/glympse/android/glympse/Glympse;

    iget-object v4, v4, Lcom/glympse/android/glympse/Glympse;->m_oMapControl:Lcom/glympse/android/glympse/MapControl;

    invoke-virtual {v4}, Lcom/glympse/android/glympse/MapControl;->getZoomControls()Landroid/view/View;

    move-result-object v4

    invoke-virtual {v3, v4, v1}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 86
    sget-object v3, Lcom/glympse/android/glympse/Glympse;->ms_oThis:Lcom/glympse/android/glympse/Glympse;

    iget-object v3, v3, Lcom/glympse/android/glympse/Glympse;->m_oMapControl:Lcom/glympse/android/glympse/MapControl;

    invoke-virtual {v3, v8}, Lcom/glympse/android/glympse/MapControl;->displayZoomControls(Z)V

    .line 87
    iget-object v3, p0, Lcom/glympse/android/glympse/ViewDestination$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewDestination;

    new-instance v4, Lcom/glympse/android/glympse/ViewDestination$ZoomTimer;

    iget-object v5, p0, Lcom/glympse/android/glympse/ViewDestination$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewDestination;

    invoke-direct {v4, v5}, Lcom/glympse/android/glympse/ViewDestination$ZoomTimer;-><init>(Lcom/glympse/android/glympse/ViewDestination;)V

    invoke-static {v3, v4}, Lcom/glympse/android/glympse/ViewDestination;->access$5(Lcom/glympse/android/glympse/ViewDestination;Lcom/glympse/android/glympse/ViewDestination$ZoomTimer;)V

    .line 88
    sget-object v3, Lcom/glympse/android/glympse/Glympse;->ms_oThis:Lcom/glympse/android/glympse/Glympse;

    iget-object v4, p0, Lcom/glympse/android/glympse/ViewDestination$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewDestination;

    invoke-static {v4}, Lcom/glympse/android/glympse/ViewDestination;->access$6(Lcom/glympse/android/glympse/ViewDestination;)Lcom/glympse/android/glympse/ViewDestination$ZoomTimer;

    move-result-object v4

    invoke-virtual {v3, v4}, Lcom/glympse/android/glympse/Glympse;->AddTimer(Lcom/glympse/platform/common/GTimer;)V

    .line 91
    invoke-static {v0, v9}, Lcom/glympse/android/glympse/Glympse;->SetFocusDelayed(Landroid/view/View;Z)V

    .line 92
    return-void
.end method

.method public DestroyView()V
    .locals 3

    .prologue
    const/4 v2, 0x0

    .line 97
    iget-object v0, p0, Lcom/glympse/android/glympse/ViewDestination$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewDestination;

    invoke-static {v0}, Lcom/glympse/android/glympse/ViewDestination;->access$6(Lcom/glympse/android/glympse/ViewDestination;)Lcom/glympse/android/glympse/ViewDestination$ZoomTimer;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 99
    sget-object v0, Lcom/glympse/android/glympse/Glympse;->ms_oThis:Lcom/glympse/android/glympse/Glympse;

    iget-object v1, p0, Lcom/glympse/android/glympse/ViewDestination$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewDestination;

    invoke-static {v1}, Lcom/glympse/android/glympse/ViewDestination;->access$6(Lcom/glympse/android/glympse/ViewDestination;)Lcom/glympse/android/glympse/ViewDestination$ZoomTimer;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/glympse/android/glympse/Glympse;->RemoveTimer(Lcom/glympse/platform/common/GTimer;)V

    .line 100
    iget-object v0, p0, Lcom/glympse/android/glympse/ViewDestination$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewDestination;

    invoke-static {v0, v2}, Lcom/glympse/android/glympse/ViewDestination;->access$5(Lcom/glympse/android/glympse/ViewDestination;Lcom/glympse/android/glympse/ViewDestination$ZoomTimer;)V

    .line 103
    :cond_0
    iget-object v0, p0, Lcom/glympse/android/glympse/ViewDestination$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewDestination;

    invoke-static {v0, v2}, Lcom/glympse/android/glympse/ViewDestination;->access$0(Lcom/glympse/android/glympse/ViewDestination;Landroid/widget/EditText;)V

    .line 105
    iget-object v0, p0, Lcom/glympse/android/glympse/ViewDestination$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewDestination;

    invoke-static {v0}, Lcom/glympse/android/glympse/ViewDestination;->access$4(Lcom/glympse/android/glympse/ViewDestination;)Landroid/widget/RelativeLayout;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/RelativeLayout;->removeAllViews()V

    .line 107
    iget-object v0, p0, Lcom/glympse/android/glympse/ViewDestination$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewDestination;

    invoke-virtual {v0}, Lcom/glympse/android/glympse/ViewDestination;->removeAllViews()V

    .line 108
    return-void
.end method
